using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.AceEngineering.SPM.SPMCustomDataEntity;
using Microsoft.AceEngineering.SPM.SPMDataLayer;

namespace Microsoft.AceEngineering.SPM.SPMBusinessLayer
{
    public class ScoreRangeBL
    {
        public static List<ScoreCDE> GetAllScoreData(string sortexp, int startIndex, int noOfrows)
        {
            return ScoreRangeDL.GetScoreData(sortexp, startIndex, noOfrows);
        }
        public static int GetCountScoreData()
        {
            return ScoreRangeDL.GetScoreCountData();
        }

        public static void SaveNewScoreRange(string scoreName, int thValue, string createdBy)
        {
            ScoreRangeDL.AddNewScoreRange(scoreName, thValue, createdBy);
        }
        public static void SaveScoreRangeChanges(string scoreName, int ScoreID, string createdBy)
        {
            ScoreRangeDL.UpdateScoreRange(scoreName, ScoreID, createdBy);
        }

        public static void DeleteScoreRange(string scoreID)
        {
            ScoreRangeDL.DeleteScoreRange(scoreID);
        }

        public static int[] GetQuestionMaxAnswerWts()
        {
            return ScoreRangeDL.GetQuestionMaxAnswerWts();
        }
    }
}
